{include file="../app/view/common/header.html" subtitle="文章编辑" page="post_edit"}
<script>
    var pid = {$pid};
</script>
<script src="/static/post/vditor/dist/index.min.js"></script>
<link href="/static/post/vditor/dist/index.css" rel="stylesheet">

<style>
    .info {
        position: relative;
        left: 10px;
    }
</style>

<div class="info">
    <div class="mdui-textfield">
        <label class="mdui-textfield-label">文章标题</label>
        <input class="mdui-textfield-input" type="text" id="title"/>
    </div>
    <select class="mdui-select select-item" mdui-select id="type_select">
    </select>
</div>


<div id="vditor"></div>
<br>
<button class="mdui-btn mdui-color-theme-accent mdui-ripple" style="left:50%;transform: translateX(-50%);width: 30%;" onclick="onSaveBtn()">保存修改</button>
<br>
<h1> </h1>

<script>
    v = new Vditor('vditor', {
        toolbar: ['emoji','headings','bold','italic','strike','|','line','quote','list','ordered-list','check','outdent','indent','code','inline-code','insert-after','insert-before','undo','redo','upload','link','table','record','edit-mode','both','preview','fullscreen','outline','code-theme','content-theme','export', 'devtools','info','help','br'],
        outline: {enable:false}
    })
</script>
<script src="/static/post/edit.js"></script>